﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adbook.aspx.cs" Inherits="LDAP.adbook" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align:center">
        <asp:TextBox ID="txtFName" runat="server" ontextchanged="btnGo_Click" 
            Width="207px"></asp:TextBox>
&nbsp;<asp:Button ID="btnGo" runat="server" onclick="btnGo_Click" TabIndex="1" 
            Text="Search" />
&nbsp;<br />
        <asp:Label ID="lblResults" runat="server"></asp:Label>
        <br />
        <asp:GridView ID="GridView1" runat="server" CellPadding="4" HorizontalAlign="Center"
            onrowdatabound="GridView1_RowDataBound" TabIndex="2" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" 
            BorderStyle="None" BorderWidth="1px">
            <Columns>
                <asp:TemplateField HeaderText="Name">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" 
                            Text='<%# Eval("Name") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Location" HeaderText="Location" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#e5791e" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="Black" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        </asp:GridView>
        <asp:DetailsView ID="DetailsView1" runat="server" BackColor="White" HorizontalAlign="Center"
            BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            Height="50px" ondatabound="DetailsView1_DataBound" Width="125px">
            <EditRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="Black" />
        </asp:DetailsView>
        <br />
    </div>
        <div style="text-align:center"><img runat="server" id="abImage"  alt="Address Book" src="moleskine_classic_address.gif" /></div>
    </form>
</body>
</html>
